package com.kkb.service.impl;

import com.kkb.mapper.TbRoleMapper;
import com.kkb.mapper.TbSysuserRoleMapper;
import com.kkb.pojo.TbRole;
import com.kkb.pojo.TbSysuserRole;
import com.kkb.pojo.TbSysuserRoleExample;
import com.kkb.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    TbSysuserRoleMapper userRoleMapper;

    @Autowired
    TbRoleMapper roleMapper;


    @Override
    public List<TbRole> getRoleList() {
        List<TbRole> tbRoles = roleMapper.selectByExample(null);
        return tbRoles;
    }
}
